package com.ly.heart.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ly.common.core.domain.BaseVo;
import lombok.Data;
import com.ly.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 金蝶-基础-计量单位对象 erp_king_base_metering_unit
 *
 * @author cxl
 * @date 2024-07-01
 */
@TableName ("erp_king_base_metering_unit")
@ApiModel (value = "金蝶-基础-计量单位", description = "金蝶-基础-计量单位")
@Data
public class KingBaseMeteringUnitEntity extends BaseVo {

    /** 主键id */
    @TableId (type = IdType.INPUT)
    private String id;

    /** 计量单位编码 */
    @ApiModelProperty ("计量单位编码")
    @TableField ("metering_unit_code")
    @Excel (name = "计量单位编码")
    private String meteringUnitCode;

    /** 计量单位名称 */
    @ApiModelProperty ("计量单位名称")
    @TableField ("metering_unit_name")
    @Excel (name = "计量单位名称")
    private String meteringUnitName;

    /** 计量单位描述 */
    @ApiModelProperty ("计量单位描述")
    @TableField ("metering_unit_describe")
    @Excel (name = "计量单位描述")
    private String meteringUnitDescribe;

    /** 计量单位所属组别id */
    @ApiModelProperty ("计量单位所属组别编码")
    @TableField ("metering_unit_group_code")
    @Excel (name = "计量单位所属组别id")
    private String meteringUnitGroupCode;

    /** 换算类型 */
    @ApiModelProperty ("换算类型")
    @TableField ("exchange_type")
    @Excel (name = "换算类型")
    private String exchangeType;

    /** 是否基准计量单位 */
    @ApiModelProperty ("是否基准计量单位")
    @TableField ("is_base")
    @Excel (name = "是否基准计量单位")
    private Boolean isBase;

    /** 精度 */
    @ApiModelProperty ("精度")
    @TableField ("default_degree")
    @Excel (name = "精度")
    private String defaultDegree;

    /** 舍入类型 */
    @ApiModelProperty ("舍入类型")
    @TableField ("rounding_type")
    @Excel (name = "舍入类型")
    private String roundingType;

    /** 换算分母 */
    @ApiModelProperty ("换算分母")
    @TableField ("exchange_denominator")
    @Excel (name = "换算分母")
    private String exchangeDenominator;

    /** 换算分字 */
    @ApiModelProperty ("换算分字")
    @TableField ("exchange_numerator")
    @Excel (name = "换算分字")
    private String exchangeNumerator;

    /** 录入人 */
    @ApiModelProperty ("录入人")
    @TableField ("user_id")
    @Excel (name = "录入人")
    private String userId;

    @ApiModelProperty ("创建时间")
    @JsonFormat ( pattern = "yyyy-MM-dd HH:mm:ss" )
    @TableField ("create_time")
    private Date createTime;

    /** 更新时间 */
    @ApiModelProperty ("更新时间")
    @TableField ("change_time")
    @JsonFormat ( pattern = "yyyy-MM-dd HH:mm:ss" )
    private Date changeTime;

    @ApiModelProperty ("是否推金蝶")
    @TableField ("is_send")
    @Excel (name = "是否推金蝶")
    private Integer isSend;

    @ApiModelProperty ("逻辑删除")
    @TableField ("is_used")
    @Excel (name = "逻辑删除")
    private Integer isUsed;

    @ApiModelProperty ("是否可用")
    @TableField ("is_del")
    @Excel (name = "是否可用")
    private Integer isDel;

}
